﻿@using System.Collections
@using System.Text.RegularExpressions
@using Sharp.Infrastructure
@using Sharp.Portal.Configuration

@model IndexModel
@{
    var config = SystemConfigManage.Read<PlatformInfo>();
    ViewBag.Title = config.SysName;
    Layout = "~/Areas/Platform/Views/Shared/_BaseLayout.cshtml";
    var x = Html.X();
}

@section headtag{
    @Scripts.Render("~/bundles/app")
    <script src="~/Scripts/PlatformSharp/app.js"></script>
    <script src="~/Scripts/PlatformSharp/app.core.js"></script>
    @Scripts.Render("~/bundles/vm")
    <script>
        $(function () {
            app.getMasterData();
        })
    </script>

}
@section example
{
    @{
        var portal = x.Viewport().ID("portalViewport").Layout(LayoutType.Border).SuspendLayout(true);

        portal.ItemsFromPartial("_LeftTree", Model.LeftPanel);
        portal.ItemsFromPartial("_Top");
        portal.ItemsFromPartial("_MainTabs");
    }

    @(portal.SuspendLayout(false))
}